using Microsoft.EntityFrameworkCore;
using MvcSoft1Demo.Models;
namespace MvcSoft1Demo.Db
{
    public class Soft1DemoDb : DbContext
    {
        private readonly string _conString = "server=.;database=Soft1DemoDb;uid=sa;pwd=123456;";

        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            builder.UseSqlServer(_conString);
        }

        public DbSet<School> School { get; set; }
        public DbSet<Student> Student { get; set; }
    }
}